<?php 
	$wp_query_backup = $wp_query;
	$__mainpost = $post;
	$orderby = __get_custom( $post->ID, 'orderby', 'title' );
	query_posts( array ( 
		'post_parent' => $post->ID, 
		'post_type' => 'page',
		'orderby' => $orderby,
		'order' => 'ASC',
		'nopaging' => true ) 
	);
	if ( have_posts() ) : 
?>

<div class="entry-list">
<?php
	include (TEMPLATEPATH . '/include/list-navigation.php');
    while ( have_posts() ) : 
		the_post(); 
		$post_count++;
		$post_class = $post_count % 2 == 0 ? 'even' : 'odd';
?>
<a name="<?php echo __get_initial( $post->post_title ); ?>"></a>
<div class="entry-list-item <?php echo $post_class; ?>" id="post-<?php the_ID(); ?>">
<?php 
		include (TEMPLATEPATH . '/include/entry-title.php'); 
		include (TEMPLATEPATH . '/include/entry-thumb.php'); 
		include (TEMPLATEPATH . '/include/entry-body.php'); 
?>
</div>
<?php
	endwhile; 
	include (TEMPLATEPATH . '/include/list-navigation.php');
?>
</div>

<?php 
	endif; 
	$wp_query = $wp_query_backup;
	$post = $__mainpost;
?>
